<script setup lang="ts">
import { RouterLink, RouterView } from 'vue-router'
import { useThemeStore } from '@/stores/theme'
import { onMounted } from 'vue'

const themeStore = useThemeStore()

onMounted(() => {
  if(themeStore.isDark) {
    document.documentElement.classList.add('dark')
  }
})
</script>

<template>
  <RouterView />
</template>

<style scoped>
</style>
